package com.csun.cmny.provider.dao;

import com.csun.cmny.provider.pojo.OldmanCheckIn;
import com.csun.cmny.provider.pojo.OldmanItem;
import com.csun.cmny.provider.pojo.OldmanItemKey;

import java.util.List;
import java.util.Map;

public interface OldmanItemMapper {
    int deleteByPrimaryKey(OldmanItemKey key);

    int insert(OldmanItem record);

    int insertSelective(OldmanItem record);

    OldmanItem selectByPrimaryKey(OldmanItemKey key);

    int updateByPrimaryKeySelective(OldmanItem record);

    int updateByPrimaryKey(OldmanItem record);
    /**
     * 批量添加
     * author:liqian
     * date:2018-11-16 14:06
     */
    int insertBatch(List<OldmanItem> oldmanItemList);
    /**
     * 删除老人私人定制项目数据
     * author:liqian
     * date:2018-11-16 14:23
     */
    int delOldItemByOid(Integer oldmanId);
    /**
     * 查询老人私人定制
     * author:liqian
     * date:2018-11-16 17:36
     */
    List<Map<String,Object>> sltOldItemByOid(Integer oldmanId);

}